package com.woniuxy.dto;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDate;

@Data
public class CarAccidentDto {
    @ExcelIgnore
    private Integer id;
    @ExcelProperty(value="车牌号",index = 0)
    private String carNumber;   //车牌号
    @ExcelProperty(value="车架号",index = 1)
    private String frameNumber; //车架号
    @ExcelProperty(value="保险单号",index = 2)
    private String policyNumber;//保险单号
    @ExcelProperty(value="事故日期",index = 3)
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDate accidentDate;//事故日期
    @ExcelProperty(value="理赔金额",index = 4)
    private Double claimsAmount;//理赔金额
    @ExcelProperty(value="损失金额",index = 5)
    private Double lossAmount;//损失金额
    @ExcelProperty(value="事故处理情况",index = 6)
    private Integer treatmentSituation;//事故处理情况 0:未处理 1:已处理
    @ExcelProperty(value="赔偿金到位情况",index = 7)
    private Integer compensationSituation;//赔偿金到位情况 0:未到位 1:已到位
    @ExcelProperty(value="运营里程数",index = 8)
    private String operatingMileage;//运营里程数
    @ExcelProperty(value="事故原因",index = 9)
    private String accidentCause;//事故原因
    @ExcelProperty(value="附件名称",index = 10)
    private String attachmentUploadName;//附件名称
    @ExcelProperty(value="附件地址",index = 11)
    private String attachmentUpload;//附件
    @ExcelProperty(value="car外键",index = 12)
    private Integer carId;//car外键
}
